package com.sqlsession;


import com.sqlsession.database.CColumn;
import com.sqlsession.database.CTable;

import java.sql.Connection;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.List;

public interface DateSource {

    List<CTable> getSelectTablesSql() throws SQLException;
    /**
     * 获取所有的表
     *
     * @return
     * @throws SQLException
     */
    List<CTable> getSelectTablesSql(ResultSet resultSet) throws SQLException;

    /**
     * 获取表中所有的字段
     *
     * @return
     */
    List<CColumn> getColumns(CTable cTable) throws SQLException;

    Connection getConnection();

    void close();
}
